<template>
  <div class="page-tools">
    <!-- 左侧 -->
    <div class="left">
      <div class="tips">
        <i class="el-icon-info" />

        <!-- 左边内容自定义具名插槽 -->
        <slot name="left" />
        <!-- 默认内容 -->
      </div>
    </div>
    <div class="right">
      <!-- 右侧 -->
      <!-- 右边内容自定义具名插槽 -->
      <slot name="right">
        <!-- 默认内容 -->
        <el-button type="primary" size="small">历史归档</el-button>
        <el-button type="primary" size="small">导出</el-button>
      </slot>
    </div>
  </div>
</template>

<script>
export default {
  // 组件名 =>注册组件用的名字
  name: 'PageTools'
}
</script>

<style lang="scss" scoped>
.page-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  .tips {
    line-height: 34px;
    padding: 0px 15px;
    border-radius: 5px;
    border: 1px solid rgba(145, 213, 255, 1);
    background: rgba(230, 247, 255, 1);
    i {
      margin-right: 10px;
      color: #409eff;
    }
  }
}
</style>
